Integrand size = 35, antiderivative size = 187 \[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=-\frac {\sqrt {1+(a+b x)^2}}{2 b}+\frac {(a+b x) \sqrt {1+(a+b x)^2} \arctan (a+b x)}{2 b}+\frac {i \arctan (a+b x) \arctan \left (\frac {\sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{b}-\frac {i \operatorname {PolyLog}\left (2,-\frac {i \sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{2 b}+\frac {i \operatorname {PolyLog}\left (2,\frac {i \sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{2 b} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {5165, 5072, 267, 5006} \[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\frac {i \arctan \left (\frac {\sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right ) \arctan (a+b x)}{b}+\frac {(a+b x) \sqrt {(a+b x)^2+1} \arctan (a+b x)}{2 b}-\frac {i \operatorname {PolyLog}\left (2,-\frac {i \sqrt {i (a+b x)+1}}{\sqrt {1-i (a+b x)}}\right )}{2 b}+\frac {i \operatorname {PolyLog}\left (2,\frac {i \sqrt {i (a+b x)+1}}{\sqrt {1-i (a+b x)}}\right )}{2 b}-\frac {\sqrt {(a+b x)^2+1}}{2 b} \]
[In]
[Out]
Rule 267
Rule 5006
Rule 5072
Rule 5165
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {x^2 \arctan (x)}{\sqrt {1+x^2}} \, dx,x,a+b x\right )}{b} \\ & = \frac {(a+b x) \sqrt {1+(a+b x)^2} \arctan (a+b x)}{2 b}-\frac {\text {Subst}\left (\int \frac {x}{\sqrt {1+x^2}} \, dx,x,a+b x\right )}{2 b}-\frac {\text {Subst}\left (\int \frac {\arctan (x)}{\sqrt {1+x^2}} \, dx,x,a+b x\right )}{2 b} \\ & = -\frac {\sqrt {1+(a+b x)^2}}{2 b}+\frac {(a+b x) \sqrt {1+(a+b x)^2} \arctan (a+b x)}{2 b}+\frac {i \arctan (a+b x) \arctan \left (\frac {\sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{b}-\frac {i \operatorname {PolyLog}\left (2,-\frac {i \sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{2 b}+\frac {i \operatorname {PolyLog}\left (2,\frac {i \sqrt {1+i (a+b x)}}{\sqrt {1-i (a+b x)}}\right )}{2 b} \\ \end{align*}
Time = 0.56 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.78 \[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\frac {-\sqrt {1+(a+b x)^2}+(a+b x) \sqrt {1+(a+b x)^2} \arctan (a+b x)-\arctan (a+b x) \log \left (1-i e^{i \arctan (a+b x)}\right )+\arctan (a+b x) \log \left (1+i e^{i \arctan (a+b x)}\right )-i \operatorname {PolyLog}\left (2,-i e^{i \arctan (a+b x)}\right )+i \operatorname {PolyLog}\left (2,i e^{i \arctan (a+b x)}\right )}{2 b} \]
[In]
[Out]
Time = 0.68 (sec) , antiderivative size = 180, normalized size of antiderivative = 0.96
method | result | size |
default | \(\frac {\left (\arctan \left (b x +a \right ) b x +a \arctan \left (b x +a \right )-1\right ) \sqrt {b^{2} x^{2}+2 a b x +a^{2}+1}}{2 b}+\frac {\arctan \left (b x +a \right ) \ln \left (1+\frac {i \left (1+i \left (b x +a \right )\right )}{\sqrt {1+\left (b x +a \right )^{2}}}\right )-\arctan \left (b x +a \right ) \ln \left (1-\frac {i \left (1+i \left (b x +a \right )\right )}{\sqrt {1+\left (b x +a \right )^{2}}}\right )-i \operatorname {dilog}\left (1+\frac {i \left (1+i \left (b x +a \right )\right )}{\sqrt {1+\left (b x +a \right )^{2}}}\right )+i \operatorname {dilog}\left (1-\frac {i \left (1+i \left (b x +a \right )\right )}{\sqrt {1+\left (b x +a \right )^{2}}}\right )}{2 b}\) | \(180\) |
[In]
[Out]
\[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\int { \frac {{\left (b x + a\right )}^{2} \arctan \left (b x + a\right )}{\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\int { \frac {{\left (b x + a\right )}^{2} \arctan \left (b x + a\right )}{\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\int { \frac {{\left (b x + a\right )}^{2} \arctan \left (b x + a\right )}{\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b x)^2 \arctan (a+b x)}{\sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx=\int \frac {\mathrm {atan}\left (a+b\,x\right )\,{\left (a+b\,x\right )}^2}{\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}} \,d x \]
[In]
[Out]